-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Develop #4059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Develop #4059
Conversation
Feature/prettier
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Summary
This requires changes because the core requirements of the task have not been met. You've done a great job setting up the project and writing comprehensive tests, which is a fantastic start! However, the Sum component itself is missing. You'll need to create src/components/Sum/Sum.jsx and implement the required logic. Consequently, src/App.jsx must be updated to import and use this new component instead of the current hardcoded paragraphs. Additionally, there's a small path mismatch in .github/workflows/test.yml; please change the artifact path from reports to raw_reports to ensure the test reports upload correctly.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
.github/workflows/test.yml
Outdated
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: report | ||
| path: reports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a path mismatch here. The cypress.config.js file specifies that reports should be generated in the raw_reports directory, but this step is attempting to upload from a reports directory. To fix this, you should change the path to raw_reports.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Summary
Excellent progress on this submission! You have successfully implemented the Sum component and addressed the previous feedback. The functionality is correct, and the tests are comprehensive.
However, one change is needed to meet the project's coding standards. In src/components/Sum/Sum.jsx, the implementation doesn't follow the required code style for string interpolation, which violates a specific checklist item.
Please update the component's return statement to wrap the entire string in a single JSX expression using a template literal:
// Change this:
<p>Sum of {a} and {b} is {a + b}</p>
// To this:
<p>{`Sum of ${a} and ${b} is ${a + b}`}</p>Once you make this quick fix, the submission will be ready for approval. Keep up the great work!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
| export function Sum({ a = 0, b = 0 }) { | ||
| return ( | ||
| <p> | ||
| Sum of {a} and {b} is {a + b} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation works correctly, but it doesn't follow the required code style. This violates checklist item #2: 'Use string interpolation inside tag content'.
Please wrap the entire string in a single JSX expression using backticks (template literals), like so:
<p>
{`Sum of ${a} and ${b} is ${a + b}`}
</p>
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Summary
I am approving this submission as an educational override to help you progress, but there is one crucial style requirement from the previous review that still needs to be addressed. Your components are functionally correct and the tests are excellent, which is great work! However, the string formatting in src/components/Sum/Sum.jsx does not yet meet the project's coding standards.
Please remember to use a single template literal for the entire string as required [CHECKLIST ITEM #2].
-
Current:
<p>Sum of {a} and {b} is {a + b}</p> -
Expected:
<p>{\Sum of ${a} and ${b} is ${a + b}\
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| export function Sum({ a = 0, b = 0 }) { | ||
| return ( | ||
| <p> | ||
| Sum of {a} and {b} is {a + b} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation still doesn't follow the required code style. This violates checklist item #2: 'Use string interpolation inside tag content'.
As mentioned in the previous review, please use a single template literal for the entire string:
<p>{`Sum of ${a} and ${b} is ${a + b}`}</p>
No description provided.